package com.yanzhenjie.andserver.sample.controller.auth.dto;

/**
 * 作者: Tao
 * 日期: 2023/2/20
 * 时间: 19:30
 * 描述: 登录入参实体
 */
public class LoginDto {
    /**
     * 请求凭证
     */
    private String session_id;

    /**
     * 登录用户名
     */
    private String username;

    /**
     * 登录密码(SHA2-256(password, salt, challenge))
     */
    private String password;

    /**
     * AES加密的明文密码,提供给设备做密码比对，暂时只有W5K使用
     */
    private String ciphertext;

    public String getSession_id() {
        return session_id;
    }

    public void setSession_id(String session_id) {
        this.session_id = session_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCiphertext() {
        return ciphertext;
    }

    public void setCiphertext(String ciphertext) {
        this.ciphertext = ciphertext;
    }

    @Override
    public String toString() {
        return "LoginDto{" +
                "session_id='" + session_id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", ciphertext='" + ciphertext + '\'' +
                '}';
    }
}
